package com.ruoyi.system.service.project.impl;

import java.util.List;

import com.ruoyi.system.domain.project.teachpaper.TeachpaperInfoTeacher;
import com.ruoyi.system.mapper.project.TeachpaperInfoTeacherMapper;
import com.ruoyi.system.service.project.ITeachpaperInfoTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 教改论文教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-09
 */
@Service
public class TeachpaperInfoTeacherServiceImpl implements ITeachpaperInfoTeacherService
{
    @Autowired
    private TeachpaperInfoTeacherMapper teachpaperInfoTeacherMapper;

    /**
     * 查询教改论文教师
     * 
     * @param id 教改论文教师主键
     * @return 教改论文教师
     */
    @Override
    public TeachpaperInfoTeacher selectTeachpaperInfoTeacherById(Long id)
    {
        return teachpaperInfoTeacherMapper.selectTeachpaperInfoTeacherById(id);
    }

    /**
     * 查询教改论文教师列表
     * 
     * @param teachpaperInfoTeacher 教改论文教师
     * @return 教改论文教师
     */
    @Override
    public List<TeachpaperInfoTeacher> selectTeachpaperInfoTeacherList(TeachpaperInfoTeacher teachpaperInfoTeacher)
    {
        return teachpaperInfoTeacherMapper.selectTeachpaperInfoTeacherList(teachpaperInfoTeacher);
    }

    /**
     * 新增教改论文教师
     * 
     * @param teachpaperInfoTeacher 教改论文教师
     * @return 结果
     */
    @Override
    public int insertTeachpaperInfoTeacher(TeachpaperInfoTeacher teachpaperInfoTeacher)
    {
        return teachpaperInfoTeacherMapper.insertTeachpaperInfoTeacher(teachpaperInfoTeacher);
    }

    /**
     * 修改教改论文教师
     * 
     * @param teachpaperInfoTeacher 教改论文教师
     * @return 结果
     */
    @Override
    public int updateTeachpaperInfoTeacher(TeachpaperInfoTeacher teachpaperInfoTeacher)
    {
        return teachpaperInfoTeacherMapper.updateTeachpaperInfoTeacher(teachpaperInfoTeacher);
    }

    /**
     * 批量删除教改论文教师
     * 
     * @param ids 需要删除的教改论文教师主键
     * @return 结果
     */
    @Override
    public int deleteTeachpaperInfoTeacherByIds(Long[] ids)
    {
        return teachpaperInfoTeacherMapper.deleteTeachpaperInfoTeacherByIds(ids);
    }

    /**
     * 删除教改论文教师信息
     * 
     * @param id 教改论文教师主键
     * @return 结果
     */
    @Override
    public int deleteTeachpaperInfoTeacherById(Long id)
    {
        return teachpaperInfoTeacherMapper.deleteTeachpaperInfoTeacherById(id);
    }
}
